package com.umeox.quranplayer.widgets;

import android.content.Context;
import android.util.AttributeSet;

import com.umeox.moto.watch.themes.widget.TextView;


public class RunTextView extends TextView {
    private boolean mMarqueEnable = true;

    public RunTextView(Context context) {
        this(context, null);
    }

    public RunTextView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public RunTextView(Context context, AttributeSet attrs, int defStyleAttr) {
       super(context,attrs,defStyleAttr);
    }

    @Override
    public boolean isFocused() {
        return mMarqueEnable;
    }

    public void setMarqueEnable(boolean marqueEnable) {
        mMarqueEnable = marqueEnable;
        setSelected(mMarqueEnable);
        postInvalidate();
    }
}
